#include "cpu/exec/template-start.h"

#define instr je

static void do_execute()
{
    // Log(" cpu.eip=%x",cpu.eip);
    //Log("src->val=%x",op_src->val);

    print_asm(str(instr) " %x", cpu.eip + DATA_BYTE + 1 + op_src->val);

    //Log(" cf= %d",cpu.eflags.CF);
    
    if (cpu.eflags.ZF == 1) //如果符合条件，则跳转。
    {
        //Log("go in the cf=1");
        cpu.eip += op_src->val;
        
        if (ops_decoded.is_operand_size_16)
            cpu.eip = cpu.eip & 0x0000ffff; //0000ffff 
    }
}

make_instr_helper(i);

#include "cpu/exec/template-end.h"
